﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp2
{
    class Area
    {
        public string Name { get; set; }
        public double RectangleArea { get; set; }
        public double CircleArea { get; set; }

        public double GetCircleArea(double a)
        {
            return 3.14 * a * a;
        }
        public double GetRectangleArea(double b, double c)
        {
            return b * c;
        }
        public void B()
        {
            Console.WriteLine("圆的面积是{0}，长方形的面积是{1}", this.CircleArea, this.RectangleArea);
        }
        public Area(string name)
        {
            this.Name = name;
        }
    }
}
